//
//  EFSTradeDefine.h
//  EFSMobile
//
//  Created by Chuan on 12/10/15.
//  Copyright © 2015 Elephants Financial Service. All rights reserved.
//

#ifndef GuBoShi_YSSocketDefine_h
#define GuBoShi_YSSocketDefine_h


typedef NS_ENUM(NSUInteger, YSSocketCommand) {
    YSSocketCommandHeartBeat = 3101 ,        /**< 心跳 */
    YSSocketCommandSubscribeQuote = 1002,    /**< 订阅行情 */
    YSSocketCommandPushQuote      = 1005,    /**< 推送行情 */
    YSSocketCommandPushTrdDy      = 1007     /**< 交易日变更推送 */
};


static NSString *const YSSocketDomain = @"Socket_Domain";   /**< error domain */
static NSInteger const YSSocketDisconnetErrorCode = -1;     /**< sokect 断开 */
static NSInteger const YSSocketTimeoutErrorCode = -2;       /**< socket 超时 */

static NSString *const YSSocketDisconnectNotification = @"YS_Socket_Disconnet"; /**< socket断开通知 */

#endif
